/**
 * Project Name:kany-utils
 * File Name:Comment.java
 * Package Name:me.kany.utils.config.ini
 * Date:2016-1-7上午11:15:38
 * Copyright (c) 2016, Jason.Wang All Rights Reserved.
 *
*/

package me.kany.utils.config.ini.comment;

import me.kany.utils.config.ini.line.Line;

/**
 * ClassName:Comment <br/>
 * Function: INI注释的操作类. <br/>
 * Date:     2016-1-7 上午11:15:38 <br/>
 * @author   Jason.Wang
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */
public class Comment implements Line {
	private String comment;
	private char delimiter;

	public Comment(String comment) {
		this(comment, '#');
	}

	public Comment(String comment, char delimiter) {
		this.comment = comment.trim();
		this.delimiter = delimiter;
	}

	public String toString() {
		return this.delimiter + " " + this.comment;
	}
}
